package com.threeti.mecool.legacy.domain.model.basicdata.biz;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/** 促销员(遗留) */
@Entity
@Table(name = "MD_SALES")
public class SalesLegacy {

  @Id
  @Column(name="SALES_CODE")
  private String code;
  
  @Column(name="SALES_NAME")
  private String name;
  
  @Column(name="AD_ID")
  private Long adId;
  
  @Column(name="SALES_S_CODE")
  private String idCardNo;

	public SalesLegacy(String code, String name, Long adId, String idCardNo) {
		super();
		this.code = code;
		this.name = name;
		this.adId = adId;
		this.idCardNo = idCardNo;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getAdId() {
		return adId;
	}

	public void setAdId(Long adId) {
		this.adId = adId;
	}

	/** 身份证号 */
	public String getIdCardNo() {
		return idCardNo;
	}

	public void setIdCardNo(String idCardNo) {
		this.idCardNo = idCardNo;
	}

	@Override
	public String toString() {
		return "SalesLegacy [code=" + code + ", name=" + name + ", adId=" + adId + ", idCardNo=" + idCardNo + "]";
	}

	public SalesLegacy() {
		super();
	}
	
	@Transient
	private String adName;
	
	public void setAdName(String adName) {
		this.adName = adName;
	}
	
	public String getAdName() {
		return adName;
	}
	
}
